package com.edu.fd2130sprbootdemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: fd2130sprbootdemo
 * @description:
 * @author: Teacher.zhang
 * @create: 2022-02-28 14:52
 **/
@RestController
//RestController = @Controller +@ResponseBoby 所以当前类中函数返回的全是Json格式对象
public class IndexController {
    @RequestMapping("/")
    public String index()throws Exception{
        return "Welcome to fd2135!";
    }
}
